package com.southwind.springboottest.study.java中流式操作;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @description：TODO
 * @author： HXG
 * @create： 2024/3/19 15:29
 */
public class StreamDemo4 {
    public static void main(String[] args) {
        //数组
        //1.创建数组
        int[] arr1 = {1,2,3,4,5,6};
        String[] arr2 = {"a","b","c"};
        //获取Stream流
        Arrays.stream(arr1).forEach(s -> System.out.println(s));

        System.out.println("===================");

        Arrays.stream(arr2).forEach(s -> System.out.println(s));
    }
}
